package org.example.erp.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.erp.domain.SysUser;
import org.example.erp.domain.Workstation;
import org.example.erp.service.WorkstationService;
import org.example.erp.mapper.WorkstationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
* @author 86180
* @description 针对表【workstation(工作站管理表)】的数据库操作Service实现
* @createDate 2024-11-05 16:19:21
*/
@Service
public class WorkstationServiceImpl extends ServiceImpl<WorkstationMapper, Workstation>
    implements WorkstationService {
    @Autowired
    private WorkstationMapper workstationMapper;

    public IPage<Workstation> find(Integer currentPage,
                                   Integer pageSize,
                                   String workstationCode,
                                  String workstationName,
                                  String workshopCode,
                                  String processCode) {
        Page<Workstation> page=new Page<>(currentPage,pageSize);
        return workstationMapper.find(page,workstationCode, workstationName, workshopCode, processCode);
    }




}






